package cz.muni.fi.pb138.localnews;

import java.util.Date;
import java.util.List;

import cz.muni.fi.pb138.localnews.dto.ArticleDTO;

public interface DataProvider {

	/**
	 * Load list of articles from XML storage per given day (for all regions).
	 * 
	 * @param day
	 * @return
	 */
	List<ArticleDTO> loadArticleListPerDay(Date day);

	/**
	 * Loads list of articles per given day and region
	 * 
	 * @param day
	 * @param region
	 * @return
	 */
	List<ArticleDTO> loadArticleListPerDayAndRegion(Date day, Region region);

	/**
	 * Load article list per given timeframe and given region.
	 * 
	 * @param from
	 * @param to
	 * @param region
	 * @return
	 */
	List<ArticleDTO> loadArticleListFromDateToDateAndRegion(Date from, Date to,
			Region region);

}
